package com.by.charpter04;


import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.TextView;


import com.by.charpter04.animate.AnimatorSetActivity;
import com.by.charpter04.animate.MyActivity;
import com.by.charpter04.animate.TweenActivity;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity implements View.OnClickListener {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.webview).setOnClickListener(this);
        findViewById(R.id.service).setOnClickListener(this);
        findViewById(R.id.music).setOnClickListener(this);
        findViewById(R.id.login).setOnClickListener(this);
        findViewById(R.id.animateSet).setOnClickListener(this);


    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.webview:
                startActivity(new Intent(MainActivity.this, WebViewActivity.class));

                break;
            case R.id.service:

                break;
            case R.id.music:

                break;
            case R.id.test:

                break;
            case R.id.login:
                startActivity(new Intent(MainActivity.this, LoginActivity.class));
                break;
            case R.id.animateSet:
                startActivity(new Intent(MainActivity.this, MyActivity.class));
                break;
        }

    }


}
